package com.woniuxy.project115.kaer.tenant.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author HuH
 * @since 2025年02月17日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("tenant_info")
public class TenantInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 租户id
     */
    @TableId(value = "tenant_info_id", type = IdType.AUTO)
    private Integer tenantInfoId;

    /**
     * 注册时间
     */
    @TableField("register_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime registerTime;

    /**
     * 注册电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 密码
     */
    @TableField("password")
    private String password;

    /**
     * 联系人
     */
    @TableField("name")
    private String name;

    /**
     * 身份证号
     */
    @TableField("card_id")
    private String cardId;

    /**
     * 状态 0:正常 1:禁用 2:删除
     */
    @TableField("state")
    private Integer state;

    @TableField("store_id")
    private Integer storeId;

    @TableField("store_name")
    private String storeName;

}
